package book;

public class BookList {
    private  Book[] books;
    private int usedsize;

    public BookList() {
        this.books = new Book[10];
        this.books[0] = new Book("三国演义","罗贯中",10,"小说");
        this.books[1] = new Book("水浒传","施耐庵",12,"小说");
        this.books[2] = new Book("西游记","吴承恩",8,"小说");
        this.usedsize = 3;
    }

    public Book getBooks(int i) {
        return books[i];
    }

    public void setBooks(Book books,int pos) {
        this.books[pos] = books;
    }

    public void setUsedsize(int usedsize) {
        this.usedsize = usedsize;
    }

    public int getUsedsize() {
        return usedsize;
    }
}
